home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Utilities / Other / mCD / Source / TestCD.h < prev    next >
Encoding:
Text File  |  1994-06-26  |  1.7 KB  |  72 lines

  1.  
  2. #import <appkit/appkit.h>
  3. #import "scsi_cd.subproj/scsi_commands.h"
  4. #import "scsi_cd.subproj/cd_commands.h"
  5. #import "scsi_cd.subproj/cd_cmdsint.h"
  6.  
  7. @protocol TestCDstarter
  8. - (int) fdOfCdrom;
  9. - (struct esense_reply*) esenseReplyPtr;
  10. - (struct esense_reply*) esenseTestUnitPtr;
  11. - (struct esense_reply*) esenseCurPosPtr;
  12. @end
  13.  
  14. @interface TestCD:Object
  15. {
  16.     id    cmdInfoText;
  17.     id  trackNumField;
  18.     id    leftVolField;
  19.     id    rightVolField;
  20.     id  openFdButton;
  21.     id  closeFdButton;
  22.     
  23.     id    testCDWindow;
  24.     id    mainPrefs;
  25.     id    mainObject;        /* assumed to conform to <testCDstarter>,
  26.                      * but it's currently hooked up via IB so
  27.                  * that protocol isn't specified here */
  28.     
  29.     char    test_fdName[12];
  30.     int     test_fd;
  31.     struct inquiry_reply cd_Inq;
  32.     struct inquiry_all_reply test_InqAll;
  33.     struct esense_reply test_Ereply;
  34.     struct pb_status_reply cd_playstatus;
  35.     struct cd_volset_reply    test_volset;
  36.     struct timeval    cd_Tval;
  37.     struct cd_toc    toc;
  38.     
  39.     struct sc_reply    cd_rscReply1, cd_rscReply2, cd_rscReply3;
  40.  
  41.     char   testBuff[120];
  42.     BOOL   consolePrint;
  43. }
  44.  
  45. - awakeFromNib;
  46. - showUsingPrefs:mainPrefObject;
  47. - setConsolePrint:sender;
  48.  
  49. /* some weird actions, while I'm learning how the cd commands work */
  50. - zOpenFd:sender;
  51. - zCloseFd:sender;
  52. - zPlaybackControl:sender;
  53. - zPlaybackStatus:sender;
  54. - zModeSelect:sender;
  55. - zModeSense:sender;
  56. - zReadSubCh1:sender;
  57. - zReadSubCh2:sender;
  58. - zReadSubCh3:sender;
  59. - zAllowRemoval:sender;
  60. - zPreventRemoval:sender;
  61. - zPlayALittle:sender;
  62. - zPausePlay:sender;
  63. - zResumePlay:sender;
  64. - zRezeroUnit:sender;
  65. - zPrintLastReqSense:sender;
  66. - zPrintMainReqSense:sender;
  67. - zPrintMainCurPosSense:sender;
  68. - zPrintMainTestUnitSense:sender;
  69. - zInquiryAllScsi:sender;
  70.  
  71. @end
  72.